From: Florian Müllner Date: Wed, 4 Dec 2019 18:48:36 +0000 (+0100) Subject: keyboard: Use parent key's allocation for extended key size X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~337 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=91bf7f1e449386ee5b36c53910fdeb332ce052fb;p=gnome-shell.git keyboard: Use parent key's allocation for extended key size An outdated allocation is likely still better in this case than the preferred size, so use that instead of width/height which may fall back. https://gitlab.gnome.org/GNOME/gnome-shell/issues/1976 --- diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index d5591c317..95d971211 100644 --- a/js/ui/keyboard.js +++ b/js/ui/keyboard.js @@ -459,8 +459,7 @@ var Key = GObject.registerClass({ key.extendedKey = extendedKey; this._extendedKeyboard.add(key); - key.width = this.keyButton.width; - key.height = this.keyButton.height; + key.set_size(...this.keyButton.allocation.get_size()); } this._boxPointer.bin.add_actor(this._extendedKeyboard); }